"""
URL configuration for mysite project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views 函数视图
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views 类视图
    1. Add an import:  from other_app.views import Home as_view()把类视图转为可调用的视图函数，name属性的作用是作为一个标识符
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf 转发url,访问blog时转发到另外blog应用的urls中
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('polls/',include('polls.urls')),# 当url为polls/xxx 时截断传xxx到polls文件中的urls.py中

]
